package Others.DesignPattern.ProxyPattern.Pattern.Object;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class Pursuit implements give {
    
    private BePursued bePursued;

    public Pursuit(BePursued bePursued) {
        this.bePursued = bePursued;
    }

    public void giveDolls() {
        System.out.println(bePursued.getName() + "送你洋娃娃");
    }

    public void giveFlowers() {
        System.out.println(bePursued.getName() + "送你鲜花");
    }

    public void giveChocolates() {
        System.out.println(bePursued.getName() + "送你巧克力");
    }

}
